package top.lenjon.lib.service;

import top.lenjon.lib.entity.UserDetail;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 用户信息 服务类
 * </p>
 *
 * @author wei
 * @since 2020-11-09
 */
public interface IUserDetailService extends IService<UserDetail> {
    /**
     * 用户名查重
     * @param username username
     * @return
     */
    Integer getCountByUserName(String username);

    /**
     * 根据用户名获取id
     * @param username
     * @return
     */
    UserDetail getUserByUserName(String username);

    void activateUser(int id);
}
